<table cellpadding="0" cellspacing="0" width="100%" align="left">
    <col width="30%">
    <col width="30%">
    <col width="30%">
    <tr>
        <?php $i= 1; foreach ($arySubCategory as $key => $value) {?>
        <td align="right">
            <div class="list-category" id="list-cat-<?php echo $value['pmico_category_id'];?>">
                <a class="cpointer" style="padding-right: 10px;font-weight: bold;color: #0000FF;"><?php echo $value['pmico_category_name'];?></a><span><img height="14" class="cpointer" src="/public/images/layout/icon-edit.gif" title="Chỉnh sửa danh mục này" onclick="AdminController.pmicoShowEditCategory('<?php echo $value['pmico_category_id'];?>');"></span><span style="padding-left: 2px;"><img height="14" class="cpointer" src="/public/images/layout/delete.png" title="Xóa danh mục này" onclick="AdminController.pmicoDeleteSubCategory('<?php echo $value['pmico_category_id'];?>');"></span>
            </div>
            <div class="hide" id="sub-input-<?php echo $value['pmico_category_id'];?>">
                    <span><input id="<?php echo $value['pmico_category_id'];?>" type="text" value="<?php echo $value['pmico_category_name'];?>"></span>
                    <span><input onclick="AdminController.pmicoSaveSubCategoryById('<?php echo $value['pmico_category_id'];?>');" type="button" class="cpointer" value="Lưu" style="border: none;"></span>
                    <span><input type="button" title="Đóng" class="save-cat" onclick="AdminController.pmicoCloseEditCatById('<?php echo $value['pmico_category_id'];?>');"></span>
            </div>
        </td>
        <?php if($i % 3 == 0){?>
            </tr><tr>
        <?php } ?>
        <?php $i++; } ?>
        
    </tr>
</table>
<input type="hidden" name="main-cat-hide" id="main-cat-hide" value="<?php echo $mainCategory;?>">